iT邦幫忙

2018 iT 邦幫忙鐵人賽
DAY 4
0

透過 Devstack 使用 OpenStack

先到 git clone devstack

git clone https://git.openstack.org/openstack-dev/devstack.git devstack

建立一個名為 stack 的使用者

sudo ./devstack/tools/create-stack-user.sh

切換使用者到 stack

sudo su - stack

clone devstack

git clone https://git.openstack.org/openstack-dev/devstack.git devstack

將資料夾切換到 devstack 中

cd devstack

新增 devstack 安裝配置檔案

vim local.conf

[[local|localrc]]
# Credentials
ADMIN_PASSWORD=password
DATABASE_PASSWORD=password
RABBIT_PASSWORD=password
SERVICE_PASSWORD=password
SERVICE_TOKEN=password
SWIFT_HASH=password
SWIFT_TEMPURL_KEY=password

# Enable Ironic plugin
enable_plugin ironic git://git.openstack.org/openstack/ironic

# Enable Neutron which is required by Ironic and disable nova-network.
enable_service n-net
enable_service n-novnc
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
enable_service neutron

# Enable Swift for agent_* drivers
enable_service s-proxy
enable_service s-object
enable_service s-container
enable_service s-account

# Enable Horizon
enable_service horizon

# Disable Heat
disable_service heat h-api h-api-cfn h-api-cw h-eng

# Disable Cinder
disable_service cinder c-sch c-api c-vol

# Swift temp URL's are required for agent_* drivers.
SWIFT_ENABLE_TEMPURLS=True

# By default, DevStack creates a 10.0.0.0/24 network for instances.
# If this overlaps with the hosts network, you may adjust with the
# following.
NETWORK_GATEWAY=10.1.0.1
FIXED_RANGE=10.1.0.0/24
FIXED_NETWORK_SIZE=256

# Log all output to files
LOGFILE=$HOME/devstack.log
LOGDIR=$HOME/logs

啟動 ./stack.sh

./stack.sh

完成後在瀏覽器中輸入,即可看到 dashboard

https://{yourip}/dashboard

帳號:admin 密碼:password


上一篇
OpenStack 套件介紹
下一篇
透過 RDO 安裝 OPENSTACK
系列文
基於雲端Iaas基礎平台OpenStack結合Kubernetes,BlockChain,Spark,SDN24
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言